package com.wft.chapter06.enumtest;

public enum  ColorDesc implements IColorDesc {
    RED("#d71345"),
    YELLOW("#fcf16e"),
    BLUE("#7bbfea");
    private String code;

    ColorDesc(String code) {
        this.code = code;
    }

    @Override
    public String info() {
        return "color desc";
    }

    public static void main(String[] args) {
        System.out.println(ColorDesc.RED.info());
    }
}
